# TODO 1: 设置CMake最低版本要求
cmake_minimum_required(VERSION 3.10)
# TODO 2: 创建名为Tutorial的项目名
project(Tutorial VERSION 2.10)
# TODO: 7: 给上面项目添加版本

# TODO 6: 设置标准
#         CMAKE_CXX_STANDARD to 11
#         CMAKE_CXX_STANDARD_REQUIRED to True
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(STR_HELLO "hello world")

# TODO 8: 用configure_file复制TutorialConfig.h.in生成TutorialConfig.h
configure_file(TutorialConfig.h.in TutorialConfig.h)

# TODO 3: 为项目添加名为Tutorial的可执行目标
add_executable(Tutorial tutorial.cxx)


# TODO 9: 使用target_include_directories添加头文件搜索目录${PROJECT_BINARY_DIR}
target_include_directories(Tutorial PUBLIC "${PROJECT_BINARY_DIR}")

message(STATUS "${PROJECT_BINARY_DIR}") #PROJECT_BINARY_DIR表示构建目录，即build
message(STATUS "${Tutorial_VERSION_MAJOR}")
message(STATUS "${Tutorial_VERSION_MINOR}")